<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "{{%checkin_record_vo}}".
 *
 * @property string $checkin_time
 * @property string $image_list
 * @property string $detail_place
 * @property string $remark
 * @property string $userid
 * @property string $place
 * @property string $longitude
 * @property string $visit_user
 */
class CheckinRecordVo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%checkin_record_vo}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['checkin_time', 'image_list', 'detail_place', 'remark', 'userid', 'place', 'longitude', 'visit_user'], 'required'],
            [['image_list', 'remark'], 'string'],
            [['checkin_time', 'detail_place'], 'string', 'max' => 200],
            [['userid', 'place', 'longitude', 'visit_user'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'checkin_time' => Yii::t('app', 'Checkin Time'),
            'image_list' => Yii::t('app', 'Image List'),
            'detail_place' => Yii::t('app', 'Detail Place'),
            'remark' => Yii::t('app', 'Remark'),
            'userid' => Yii::t('app', 'Userid'),
            'place' => Yii::t('app', 'Place'),
            'longitude' => Yii::t('app', 'Longitude'),
            'visit_user' => Yii::t('app', 'Visit User'),
        ];
    }
}
